package com.ruoyi.deeplearn.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 模型对象 deep_model_dataset
 * 
 * @author rww
 * @date 2022-12-22
 */
public class DeepModelDataset extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模块ID */
    private Long id;

    /** 训练任务id */
    @Excel(name = "训练任务id")
    private Long modelId;

    /** 训练数据集id */
    @Excel(name = "训练数据集id")
    private Long datasetId;

    /** 数据集类型：1：训练   2：验证集  3：测试集 */
    @Excel(name = "数据集类型：1：训练   2：验证集  3：测试集")
    private Integer datasetFor;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 版本id */
    @Excel(name = "版本id")
    private Long modelVersionId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setModelId(Long modelId) 
    {
        this.modelId = modelId;
    }

    public Long getModelId() 
    {
        return modelId;
    }
    public void setDatasetId(Long datasetId) 
    {
        this.datasetId = datasetId;
    }

    public Long getDatasetId() 
    {
        return datasetId;
    }
    public void setDatasetFor(Integer datasetFor) 
    {
        this.datasetFor = datasetFor;
    }

    public Integer getDatasetFor() 
    {
        return datasetFor;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setModelVersionId(Long modelVersionId) 
    {
        this.modelVersionId = modelVersionId;
    }

    public Long getModelVersionId() 
    {
        return modelVersionId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("modelId", getModelId())
            .append("datasetId", getDatasetId())
            .append("datasetFor", getDatasetFor())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("modelVersionId", getModelVersionId())
            .toString();
    }
}
